import 'package:json_annotation/json_annotation.dart';

part 'bank.g.dart';

@JsonSerializable()
class Bank {
  final int id;
  final String accountType;
  final String accountTypeName;
  final String bankCardId;
  final String cardOwnerName;
  final String mainBankName;
  final String bankName;
  final bool defaultAccount;
  final int countyId;
  final String provCityCounty;

  Bank(
    this.id,
    this.accountType,
    this.accountTypeName,
    this.bankCardId,
    this.cardOwnerName,
    this.mainBankName,
    this.bankName,
    this.defaultAccount,
    this.countyId,
    this.provCityCounty,
  );

  factory Bank.fromJson(Map<String, dynamic> json) => _$BankFromJson(json);

  Map<String, dynamic> toJson() => _$BankToJson(this);
}
